<?php
/**
 * Created by WXCH
 * Date: 2020/1/8 0008 18:32
 */

namespace app\api\controller\v2;

use app\api\controller\BaseController;
use app\api\model\Banner as BannerModel;
use app\lib\exception\MissException;

class Banner extends BaseController{

    public function getBannerList(){
        $banner = BannerModel::getBannerList();
        if (!$banner ) {
            throw new MissException([
                'msg' => '请求banner不存在',
                'errorCode' => 40000
            ]);
        }
        return $banner;
    }
}